package com.caissa.springboot.starter.leaf.domain;

/**
 * 方法枚举
 *
 * @author huangxuan
 * @date 2020/6/2 AM14:45
 */
public enum MethodEnum {
    /**
     * 成功
     */
    SEGMENT_GET("SEGMENT", "/api/segment/get/", "根据业务类型获取id"),
    /**
     * 失败
     */
    SNOW_FLAKE_GET("SNOW_FLAKE", "/api/snowflake/get/", "获取id"),
    /**
     * 成功
     */
    SEGMENT_BATCH_GET("SEGMENT_BATCH", "/api/segment/batchGet/", "根据业务类型批量获取id"),
    /**
     * 失败
     */
    SNOW_FLAKE_BATCH_GET("SNOW_FLAKE_BATCH", "/api/snowflake/batchGet/", "批量获取id"),
    ;
    /**
     * 错误码
     */
    private String code;
    /**
     * 错误信息
     */
    private String codeMsg;
    /**
     * 错误描述
     */
    private String desc;

    MethodEnum(String code, String codeMsg, String desc) {
        this.code = code;
        this.codeMsg = codeMsg;
        this.desc = desc;
    }

    /**
     * 获取Code
     *
     * @return
     */
    public String getCode() {
        return code;
    }

    /**
     * 获取CodeMsg
     *
     * @return
     */
    public String getCodeMsg() {
        return codeMsg;
    }

    /**
     * 获取Desc
     *
     * @return
     */
    public String getDesc() {
        return desc;
    }

}
